//
//  PreferenceController.h
//  AMT media manager
//
//  Created by gift ku on 2/2/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface PreferenceController : NSWindowController {

	NSUserDefaults* _defaults;
	IBOutlet NSView* _generalPane;
	IBOutlet NSView* _videoPane;
	IBOutlet NSView* _audioPane;
	
	//General
	IBOutlet NSTextField* _backupDirectoryTextField;
	IBOutlet NSTextField* _videoDirectoryTextField;
	IBOutlet NSTextField* _audioDirectoryTextField;
	IBOutlet NSPopUpButton* _LanguagePopUpButton;
	IBOutlet NSMatrix* _backupDirectoryMatrix;
	IBOutlet NSMatrix* _audioDirectoryMatrix;
	IBOutlet NSMatrix* _videoDirectoryMatrix;
	IBOutlet NSButton* _backupDirectoryButton;
	IBOutlet NSButton* _audioDirectoryButton;
	IBOutlet NSButton* _videoDirectoryButton;
	
	//Audio
	IBOutlet NSPopUpButton* _sampleRatePopUpButton;
	IBOutlet NSPopUpButton* _bitRatePopUpButton;
	IBOutlet NSMatrix* _sampleRateMatrix;
	IBOutlet NSMatrix* _bitRateMatrix;
	
	//Video
	IBOutlet NSMatrix* _convertTypeMatrix;
	IBOutlet NSMatrix* _hightWidthRateMatrix;
	IBOutlet NSMatrix* _FPSMatrix;
	IBOutlet NSPopUpButton* _hightWidthRatePopUpButton;
	IBOutlet NSPopUpButton* _FPSPopUpButton;
	IBOutlet NSButton* _preserveAspectRatioCheck;
}
- (id)initWithAppController;
- (void)selectPaneWithIdentifier:(NSString*)identifier;

//General
- (IBAction)openDirectoryAction:(id)sender;
- (IBAction)checkBackupDirectoryAction:(id)sender;
- (IBAction)checkAudioDirectoryAction:(id)sender;
- (IBAction)checkVideoDirectoryAction:(id)sender;

//Audio
- (IBAction)checkSampleRateAction:(id)sender;
- (IBAction)checkBitRateAction:(id)sender;
- (IBAction)changeSampleRateAction:(id)sender;
- (IBAction)changeBitRateAction:(id)sender;

//Video
- (IBAction)checkConvertTypeAction:(id)sender;
- (IBAction)checkHightWidthRateAction:(id)sender;
- (IBAction)checkFPSAction:(id)sender;
- (IBAction)changeHightWidthRateAction:(id)sender;
- (IBAction)changeFPSAction:(id)sender;
- (IBAction)checkPreserveAspectRatioAction:(id)sender;

@end
